package com.cuit.bysj.dao;

import java.util.List;

import com.cuit.bysj.entities.Teacher;

public class TcherDao extends BaseDao {
	/*
	 * 查询列表
	 */
	@SuppressWarnings("rawtypes")
	public List querylistByhql(String hql) {

		List list = getSession().createQuery(hql).list();

		return list;
	}
	
	public Teacher getByid(Integer id) {
		return (Teacher) getSession().get(Teacher.class, id);
	}

	public void updateTcher(Teacher t){
		getSession().update(t);
	}
}
